#include "Boss2Data.h"

Boss2Data::Boss2Data(int id, int type, double x, double y)
{
	this->id = id; 
	this->type = type;
	this->rect = new Rect(_POSITION_X, _POSITION_Y, _OBS_BOSS_2_HEIGHT, _OBS_BOSS_2_WIDTH);
	this->rect->Vx = this->rect->Vy = 0;

	this->initData();
	this->initSubRect();
}

void Boss2Data::initSpriteHandler(LPD3DXSPRITE spritehandler)
{
	sprites->initSpriteHandler(spritehandler);
}

void Boss2Data::initData()
{
	this->initSprite();
}

void Boss2Data::initSprite()
{
	sprites = new Sprites(rect);
	sprites->addSprite(_STATE_MAP_STAGE2_BOSS_1, _ID_ARMY_BOSS_2, 20);
	sprites->setState(_STATE_MAP_STAGE2_BOSS_1);
}